package com.lx.patterns.factory.factory_method;


import com.lx.patterns.factory.sample_factory.SampleCoffeeFactory;

/**
 * @ClassName CoffeeStore
 * @Description: //咖啡店
 * @Author: 落雪
 * @CreateDate: 2025/1/14 07:31
 * @UpdateUser: 落雪
 * @UpdateDate: 2025/1/14 07:31
 * @UpdateRemark:
 * @Version: 1.0
 */
public class CoffeeStore {

    private CoffeeFactory factory;

    public void setFactory(CoffeeFactory factory) {
        this.factory = factory;
    }

    public Coffee makeCoffee(){

        return factory.createCoffee();
    }

}
